package com.oceansoft.mobile.econsole.modules.jlapi.entity;

import java.util.Date;

/**
 * Created by smc on 2016/2/19.
 * 内网查询条件实体类   ==>表名称: DDX_IN_QUERY_SERVICE_ATT
 */
public class InQueryServiceInfoAtt {

    private String guid; //主键

    private String sn; //业务查询流水号

    private String action;  // 查询命令标识

    private String async;   //是否异步

    private String command;  // 查询命令内容  json字符串

    private String hash;  //散列存储  验证json字符串的合法

    private Date q_start;  //请求查询发起时间

    private  String q_ip; //查询客户端ip

    private long  q_timeout;   //查询超时时间  当查询超过这个时间则不发起请求

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getAsync() {
        return async;
    }

    public void setAsync(String async) {
        this.async = async;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public Date getQ_start() {
        return q_start;
    }

    public void setQ_start(Date q_start) {
        this.q_start = q_start;
    }

    public String getQ_ip() {
        return q_ip;
    }

    public void setQ_ip(String q_ip) {
        this.q_ip = q_ip;
    }

    public long getQ_timeout() {
        return q_timeout;
    }

    public void setQ_timeout(long q_timeout) {
        this.q_timeout = q_timeout;
    }

    public InQueryServiceInfoAtt build(InQueryServiceInfo inInfo) {

        this.sn = inInfo.getSn();//业务查询流水号
        this.action = inInfo.getAction();  // 查询命令标识
        this.async = inInfo.getAsync();   //是否异步
        this.hash =inInfo.getHash();  //散列存储  验证json字符串的合法
        this.q_start = inInfo.getQ_start();  //请求查询发起时间
        this.q_ip = inInfo.getQ_ip(); //查询客户端ip
        this.q_timeout = inInfo.getQ_timeout();   //查询超时时间  当查询超过这个时间则不发起请求
        return this;
    }
}